package top.yangyitao.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.yangyitao.dao.IconRepository;
import top.yangyitao.entity.Icon;
import top.yangyitao.entityEnum.IconTypeEnum;
import top.yangyitao.service.IconService;

@Service
public class IconServiceImpl implements IconService {

	@Autowired
	private IconRepository iconDao;
	
	@Override
	public List<Icon> getFontAweSome() {
		return iconDao.findByType(IconTypeEnum.FontAwesome.getType());
	}

	@Override
	public List<Icon> getGlyphicons() {
		return iconDao.findByType(IconTypeEnum.Glyphicons.getType());
	}

}
